#Python Includes
import xml.dom.minidom
import sys

# Local Includes
import libPlugins

def describePlugin(pluginName, pluginType, pluginDescription):
	thePlugin = libPlugins.Plugin()
	thePlugin.pluginName = pluginName
	thePlugin.pluginType = pluginType
	thePlugin.pluginDescription = pluginDescription

	domImpl = xml.dom.minidom.getDOMImplementation()
	xmlDocument = domImpl.createDocument(None, 'plugin', None)

	thePlugin.savePlugin(xmlDocument, xmlDocument.documentElement)

	print xmlDocument.toprettyxml()

	xmlDocument.unlink()

if __name__ == '__main__':
	if '--describe' in sys.argv:
		describePlugin('StdAfx', 'Scanner', 'Searches for #include "StdAfx.h" where the correct case is not used.')
